package com.yicong.ants.bean.account;

/**
 * @author cch
 * @version 2020/7/16
 */
public class CheckAuth {
    int auth_type; // 0 = 无需认证 ，1= web身份证认证，2 = 活体实人认证
    float pay_price; // 需要支付的金额，如果小于0 表示无需支付
    String pay_tip; // 支付时提示的文字

    public CheckAuth() {
    }

    public int getAuth_type() {
        return this.auth_type;
    }

    public float getPay_price() {
        return this.pay_price;
    }

    public String getPay_tip() {
        return this.pay_tip;
    }

    public void setAuth_type(int auth_type) {
        this.auth_type = auth_type;
    }

    public void setPay_price(float pay_price) {
        this.pay_price = pay_price;
    }

    public void setPay_tip(String pay_tip) {
        this.pay_tip = pay_tip;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof CheckAuth)) return false;
        final CheckAuth other = (CheckAuth) o;
        if (!other.canEqual((Object) this)) return false;
        if (this.getAuth_type() != other.getAuth_type()) return false;
        if (Float.compare(this.getPay_price(), other.getPay_price()) != 0) return false;
        final Object this$pay_tip = this.getPay_tip();
        final Object other$pay_tip = other.getPay_tip();
        if (this$pay_tip == null ? other$pay_tip != null : !this$pay_tip.equals(other$pay_tip))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof CheckAuth;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        result = result * PRIME + this.getAuth_type();
        result = result * PRIME + Float.floatToIntBits(this.getPay_price());
        final Object $pay_tip = this.getPay_tip();
        result = result * PRIME + ($pay_tip == null ? 43 : $pay_tip.hashCode());
        return result;
    }

    public String toString() {
        return "CheckAuth(auth_type=" + this.getAuth_type() + ", pay_price=" + this.getPay_price() + ", pay_tip=" + this.getPay_tip() + ")";
    }
}
